package chapter1.No1_6_getId方法;

/**
 * *：getId() 获取线程的唯一标识
 *
 * @author liujian
 * @version 2016/11/8 0008
 */
public class MyThreadId extends Thread {

    public static void main(String[] args) {
        System.out.println("当前线程名字："+Thread.currentThread().getName());
        System.out.println("当前线程ID："+Thread.currentThread().getId());
    }
}
